package demo5;

import java.lang.reflect.Constructor;

public class Demo2 {
    public static void main(String[] args) throws Exception {
        Class cla = Class.forName("demo5.Student");
        Constructor c = cla.getDeclaredConstructor();
        c.setAccessible(true);
        Object o1 = c.newInstance();
        Object o2 = c.newInstance();
        System.out.println(o1);
        System.out.println(o2);

    }
}
